<template>
  <div class="cate_item" @click="goAlbum">
    <div class="img">
      <img v-lazy="img" alt="" />
    </div>
    <div class="info">
      <div class="title">{{ title}}</div>
      <div class="des">{{ salePoint}}</div>
      <div class="count">
        <span class="c1">
            <i class="font_family icon-shengyin_o"></i>{{ statCountInfo.trackCount }}
        </span>
        <span class="c2">
            <i class="font_family icon-Headset-2"></i>{{ statCountInfo.playCount | getCount}}
        </span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
    props:{
        id:{
            type:Number
        },
        img:{
            type:String
        },
        title:{
            type:String
        },
        statCountInfo:{
            type:Object
        },
        salePoint:{
            type:String
        }
    },
    methods:{
        goAlbum(){
            this.$router.push('/album/'+this.id)
        }
    }

};
</script>

<style lang="scss" scoped>
.cate_item {
    padding:15px 10px 15px 0px;
  display: flex;
  border-bottom: 1px solid #f3f4f5;
  .img {
    width: 70px;
    height: 70px;
    background: url(../../../assets/icon/common/img_load.png) no-repeat;
    background-size: 100% 100%;
    > img {
      width: 100%;
      height: 100%;
      border-radius: 4px;
    }
  }
  .info {
    padding-left: 15px;
    width: 270px;
    
    .title {
      color: #333;
      font-size: 16px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .des {
      margin: 5px 0 7px;
      font-size: 13px;
      line-height: 1.38;
      color: #999;
      
      display: -webkit-box;
      -webkit-line-clamp: 4;
      /*显示的行数*/
      overflow: hidden;
      -webkit-box-orient: vertical;
      /*隐藏超出的*/
    }
    .count{
        color: #999;
        font-size: 12px;
        span{
            margin-right: 23px;
            i{
                margin-right: 5px;
            }
        }
    }
  }
}
</style>

